
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>Blank Page - Ace Admin</title> [#include
"/admin/common/commonurl.html"]
</head>

<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
		<script type="text/javascript">
			try {
				ace.settings.check('navbar', 'fixed')
			} catch (e) {
			}
		</script>

		[#include "/admin/common/navbar.html"]

		<!-- /.navbar-container -->
	</div>

	<div class="main-container" id="main-container">
		<script type="text/javascript">
			try {
				ace.settings.check('main-container', 'fixed')
			} catch (e) {
			}
		</script>

		<div id="sidebar" class="sidebar                  responsive">
			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'fixed')
				} catch (e) {
				}
			</script>
			[#include "/admin/common/shortcuts.html"]
			<!-- /.sidebar-shortcuts -->

			<!-- .nav-list -->
			[#include "/admin/common/commonmenu.html"]
			<ul class="nav nav-list">[@menustag id=1] [#list list as item]
				[@menu item "1,49,51"] [/@menu] [/#list] [/@menustag]
			</ul>
			<!-- /.nav-list -->

			<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
				<i class="ace-icon fa fa-angle-double-left"
					data-icon1="ace-icon fa fa-angle-double-left"
					data-icon2="ace-icon fa fa-angle-double-right"></i>
			</div>

			<script type="text/javascript">
				try {
					ace.settings.check('sidebar', 'collapsed')
				} catch (e) {
				}

				function updatering() {
					$("#processinfos").slideDown();
					$.get("${siteurl}ring/downring.htm", function() {
						$("#processinfos").slideUp();
					});
				}
			</script>
		</div>

		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try {
						ace.settings.check('breadcrumbs', 'fixed')
					} catch (e) {
					}
				</script>

				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i> <a href="#">首页</a>
					</li>

					<li class="active">文章分类管理</li>
				</ul>
				<!-- /.breadcrumb -->

				<div class="nav-search" id="nav-search">
					<form class="form-search">
						<span class="input-icon"> <input type="text"
							placeholder="Search ..." class="nav-search-input"
							id="nav-search-input" autocomplete="off" /> <i
							class="ace-icon fa fa-search nav-search-icon"></i>
						</span>
					</form>
				</div>
				<!-- /.nav-search -->
			</div>



			<div class="page-content">
				[#include "/admin/common/page.html"] [#include
				"/admin/common/settings.html"]
				<div class="row">
					<div class="col-xs-12">

						<a href="${siteurl}admin/article_catalog/view_add.htm">添加分类</a>
						<div class="table-responsive">
							<table class="table table-striped table-bordered table-hover">
								<tr>
									<td class="col-xs-10">分类名称</td>
									<td class="col-xs-2 text-center">操作</td>
								</tr>
								[#list list as item]
								<tr id="trr${item.id}">
									<td>${item.name!""}</td>

									<td class="text-center">
										<div
											class="visible-md visible-lg hidden-sm hidden-xs btn-group">

											<button class="btn btn-xs btn-primary bigger-120" data-toggle="modal"
												data-target="#myModal${item.id}">修改</button>
											<a
												href="${siteurl}admin/xaioerarticle/model_delete.htm?id=${item.id}&curpage=${curpage!'1'}">
												<button class="btn btn-xs btn-danger">
													<i class="icon-trash bigger-120">删除</i>
												</button>
											</a>
										</div>
									</td>
								</tr>
								[/#list]
							</table>
							[#list list as item]
							<!-- Modal -->
							<div class="modal fade" id="myModal${item.id}" tabindex="-1"
								role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
								<div class="modal-dialog modal-sm">
									<div class="modal-content">
										<form
											action="${siteurl}admin/article_catalog/model_update.htm"
											method="post">
											<input type="hidden" name="id" value="${item.id}" />
											<div class="modal-header">
												<button type="button" class="close" data-dismiss="modal"
													aria-label="Close">
													<span aria-hidden="true">&times;</span>
												</button>
												<h4 class="modal-title" id="myModalLabel">修改标题</h4>
											</div>
											<div class="modal-body">
												<div class="row">
													<label for="form-field-1"
														class="col-sm-3 control-label no-padding-right">
														名称</label>
													<div class="col-sm-9">
														<input type="text" name="name" />
													</div>
												</div>

											</div>
											<div class="modal-footer">
												<button type="button" class="btn btn-default"
													data-dismiss="modal">关闭</button>
												<button type="submit" class="btn btn-primary">保存</button>
											</div>
										</form>
									</div>
								</div>
							</div>
							[/#list]
						</div>
						[@pager page curpage
						"${siteurl}admin/xaioerarticle/list.htm?x=1"][/@pager]


					</div>
				</div>


			</div>
		</div>
		<!-- /.main-content -->

		[#include "/admin/common/footer.html"]

	</div>
	<!-- /.main-container -->

	<!-- basic scripts -->

	[#include "/admin/common/scripts.html"]

	<!-- inline scripts related to this page -->
</body>
</html>
